import React from "react";
import ReactDOM from 'react-dom';
import { BrowserRouter as Router, Route } from "react-router-dom";
import Home from './page/Home/index';
import Error from './page/Error/index';

ReactDOM.render(
    <Router>
        <div>
            <Route exact path="/" component={Home} />
            <Route exact path="/error" component={Error} />
        </div>
    </Router>
    , document.getElementById('app'));